<template>
    <van-tabs @click="onClick">
        <van-tab v-for="index in 8" :title="'标签 ' + index" :name="index" :key="index">
            内容 {{ index }}
        </van-tab>
    </van-tabs>
</template>

<script>
    export default {
        name: "tabs",

        methods: {
            onClick(name) {
                console.log(name)
            },
        },
    }
</script>

<style scoped>

</style>